import 'package:get/get.dart';
import 'package:xm_app/routes/AppRoutes.dart';

class SplashController extends GetxController with StateMixin {
  //默认启动延迟
  int _milliseconds = 800;

  @override
  void onInit() {
    super.onInit();
    print("SplashController onInit");
    Future.delayed(Duration(milliseconds: _milliseconds), () async {
      Get.toNamed(Routes.LOGIN);
    });
  }

  @override
  void onReady() {
    super.onReady();
  }
}
